<?xml version="1.0" encoding= "UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:form>
	<p:dataScroller value="#{profileBean.currentUser.friends}" var="friend">

		<h:panelGrid columns="2">
			<p:outputPanel>
				<h:panelGrid columns="2" cellpadding="5">


					<h:outputText value="Name :"
						rendered="#{not empty friend.firstName}" />
					<h:link value=" #{friend.firstName} #{friend.lastName}"
						outcome="/user/main" includeViewParams="true">
						<f:param name="id" value="#{friend.userId}" />

					</h:link>

					<h:outputText value="Birthday:"
						rendered="#{not empty friend.birthdayDate}" />
					<h:outputText value="#{friend.birthdayDate}"
						rendered="#{not empty friend.birthdayDate}" />

					<h:outputText value="Gender:" rendered="#{not empty friend.gender}" />
					<h:outputText value="#{friend.gender}"
						rendered="#{not empty friend.gender}" />

					<p:separator style="width:100%;height:1px" />
				</h:panelGrid>
			</p:outputPanel>
		</h:panelGrid>
	</p:dataScroller>
</h:form>
</html>